package com.zys.el.time.mapper;

import com.zys.el.time.entity.ThinkingLikeCount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface ThinkingLikeCountMapper extends BaseMapper<ThinkingLikeCount> {
    @Select("select count from thinking_like_count where thinking_id = #{thinkingId};")
    Long getOneByThinkingId(@Param("thinkingId") Long thinkingId);

    void updateByThinkingId(ThinkingLikeCount thinkingLikeCount);
}




